import 'package:flutter_wan_android/entity/structure_category_entity.dart';
import 'package:flutter_wan_android/entity/structure_nav_entity.dart';
import 'package:flutter_wan_android/provider/view_state_model_list.dart';
import 'package:flutter_wan_android/service/wan_android_repository.dart';

class StructureCategoryModel extends ViewStateListModel<StructureCategoryEntity>{
  @override
  Future<List<StructureCategoryEntity>> loadData() async {
     return await WanAndroidRepository.getStructureCategoryList();
  }
}

class StructureNavModel extends ViewStateListModel<StructureNavEntity>{
  @override
  Future<List<StructureNavEntity>> loadData() async {
    return await WanAndroidRepository.getStructureNavList();
  }
}